/**
 * @ClassName Test
 * @Description
 * @Author ZJX
 * @Date 2025/5/23 21:05
 * @Version 1.0
 **/
public class Test {
    public static void main(String[] args) {
        String s = "H";
        String h = new String("H").intern();
        System.out.println(s == h);
        System.out.println(s.equals(h));
    }

    public int removeElement(int[] nums, int val) {
        int ret = 0;
        for(int i = 0; i < nums.length;i++){
            if(nums[i] != val){
                ret++;
            }
        }
        return ret;
    }
}
